package org.cliff.message.platform.core.exception;

import lombok.Data;

/**
 * 消息平台业务异常
 * @author 刘文
 * @date 2023/10/30
 */
@Data
public class MPBusinessException extends RuntimeException{

    /**
     * 错误码
     */
    private Long errorCode;

    public MPBusinessException(Long errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public MPBusinessException(String message) {
        super(message);
    }
}
